package cn.cqie.attendance.teacher.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author FallInLove
 * @since 2021-06-14
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "TeacherCourseRes对象", description = "课程响应参数")
@Alias("TeacherCourseRes")
public class TeacherCourseRes implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(value = "课程id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "课程名")
    private String courseName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "日期")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "日期")
    private Date courseTime;

    @ApiModelProperty(value = "责任老师名字")
    private String responseTeacherName;

    @ApiModelProperty(value = "实训老师(id)")
    private String trainTeacherId;

    @ApiModelProperty(value = "实训老师名字")
    private String trainTeacherName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "签到时间")
    private Date signinTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "签退时间")
    private Date signoutTime;

    @ApiModelProperty(value = "上课教室")
    private String classroom;

    @ApiModelProperty(value = "课程备注")
    private String remark;

}
